<%@ page import="study.itheima.bean.Stu" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/7/20
  Time: 21:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查看学生</title>
</head>
<body>
<table align="center" width="600px" border="1px">
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
    <% ArrayList<Stu> students = (ArrayList<Stu>) session.getAttribute("stu");
        for(Stu stu : students) {
    %>
    <tr align="center">
        <td><%=stu.getStuname()%></td>
        <td><%=stu.getStuage()%></td>
        <td><%=stu.getStuscore()%></td>
    </tr>
    <%}%>
</table>
</body>
</html>
